<!doctype html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>帖子中心</title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link rel="stylesheet" href="../libs/mui/mui.css" />
		<link rel="stylesheet" href="../libs/iconfont/fonts/iconfont.css" />
		<link rel="stylesheet" type="text/css" href="../css/main.css" />
		<link rel="stylesheet" type="text/css" href="../css/imageviewer.css" />
		<style>  
			/*图片*/ 
			
			.mui-table-view .mui-media-object.touxiang {
				border-radius: 100%;
				height: 40px !important;
				max-width: 40px !important;
				line-height: 40px !important;
			}
			
			.mui-media-object {
				height: 70px !important;
				max-width: 70px !important;
				line-height: 60px !important;
				margin-right: 5px;
			}
			
			.mui-table-view-cell p {
				font-size: 14px;
			}
			
			.mui-table-view-cell>a:not(.mui-btn) {
				white-space: normal;
			}
			
			.tie { 
				font-size: 16px;
				padding-bottom: 10px;
				-webkit-box-orient: vertical;
				word-wrap: break-word;
			}
			
			.mui-table-view.mui-grid-view .mui-table-view-cell {
				width: 100%;
				padding: 11px 15px;
				margin: 0;
				padding-bottom: 0px;
				text-align: left;
			}
			
			.mui-table-view.mui-grid-view li:nth-child(2) {
				padding-bottom: 11px;
			}
			
			.mui-table-view.mui-grid-view .mui-table-view-cell .mui-media-body {
				width: 70%;
				height: 40px;
				text-align: left;
			}
			/*评论*/
			
			.Comment div {
				width: 33.33%;
				float: left;
				text-align: center;
				border-right: 1px solid #AAAAAA;
				color: #AAAAAA;
			}
			
			.Comment div:nth-child(3) {
				border: none;
			}
			
			.Comment div a {
				color: #AAAAAA;
			}
			
			.Comment div i {
				font-size: 1.3em;
			}
			
			.Comment div b {
				font-size: 1em;
			}
			/*弹窗*/
      		.alert{ display:none;position: fixed;right: 0;left: 0; bottom: 0;z-index: 1000; }      
        	.alert-back{position: fixed;z-index: 998;top: 0;right: 0;bottom: 0;left: 0;background: rgba(0,0,0,.5);display:none;}
			/*头部*/
			
			.heade_top {
				height: 100px;
				position: relative;
			}
			
			.heade_top img {
				overflow: hidden;
				position: relative;
				height: 100px;
			}
			
			.topimg {
				width: 90%;
				top: 15%;
				left: 6%;
				position: absolute;
			}
			
			.topimg img {
				width: 65px;
				height: 65px;
				background: white;
				border-radius: 6px;
				padding: 3px;
				float: left;
			}
			
			.topimg span { 
				color: white;
				margin-left: 14px;
				font-size: 16px;
			}
			
			.topimg p {
				color: white;
				margin-bottom: 0;
				display: -webkit-box;
				padding: 0 15px;
			}
		</style>
	</head>

	<body  ng-app="App" ng-controller="circleController">
		<header class="mui-bar mui-bar-nav">
			<!--<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>-->
			<h1 class="mui-title">{{info.circle_name}}</h1>
			<a class="mui-pull-right mui-icon friends_post">
				<i class="iconfont">&#xe625;</i>
			</a>
		</header>
		<div class="mui-content">
			<div class="heade_top">
				<img src="../public/img/lun5.jpg" />
				<div class="topimg">
					<img src="../public/img/1.png" />
					<span>{{info.circle_name}}</span>
					<p>帖子{{info.circle_thcount}}</p>
					<p>简介：{{info.circle_desc}}</p>
				</div>
			</div>  
			<div class="Circle" ng-repeat="(cindex,c) in circles" >
				<ul class="mui-table-view mui-grid-view" onclick="gotoDetail(this)" t_id="{{c.theme_id}}" c_id="{{info.circle_id}}">
					<li class="mui-table-view-cell tie">
						<img class="mui-media-object touxiang mui-pull-left" src="{{c.avatar}}">
						<div class="mui-media-body">
							<span class="mui-h5 back">{{c.member_name}}</span>
							<h6>{{c.theme_addtime_app}}</h6>
						</div>
					</li>
					<li class="mui-table-view-cell">
						<div class="tie">{{c.theme_content}}</div>
						<span ng-repeat="img in c.thclass_images"> 	
							<img class="mui-media-object"src="{{img}}" data-preview-src="{{img.affix_filename}}" data-preview-group="1"/>
						</span>
					</li>
				</ul> 
				<ul class="mui-table-view Comment"> 
					<li class="mui-table-view-cell"> 
						<div class="like{{cindex}}" ng-click="theme_onlike(c.theme_id,c.circle_id,c.theme_nolike,cindex)">
							<i class="mui-icon iconfont" ng-if='c.theme_nolike===1'>&#xe614;</i>
	        				<i class="mui-icon iconfont" ng-if='c.theme_nolike===0'>&#xe616;</i>
							<b class="likecount">{{c.theme_likecount}}</b>
						</div>
						<div class="Friends" ng-click="theme_Friends(c.theme_id,c.circle_id)">
							<i class="mui-icon iconfont">&#xe60c;</i>
							<b>{{c.theme_commentcount}}</b>
						</div>
						<div class="fenx">
							<a class="shre_btn share{{cindex}}" ng-click="share_friend(c.theme_id,c.circle_id,cindex)">
								<i class="mui-icon iconfont">&#xe612;</i>
								<b class="share_count">{{c.theme_sharecount}}</b>
							</a>
						</div>
					</li>
				</ul>
			</div>
		</div>
		<!--分享-->
	    <div class="alert brand-share">
	      <ul class="background table-view">
				<li><i class="iconfont lvs weixin">&#xe609;</i>
					<span>微信</span>
				</li>
				<li><i class="iconfont ify4 qq">&#xe658;</i>
					<span>QQ好友</span>
				</li>
				<li><i class="iconfont lvs friends">&#xe65f;</i>
					<span>朋友圈</span>
				</li>
				<li><i class="iconfont ify3 micro-blog">&#xe661;</i>
					<span>微博</span>
				</li>
			</ul>
	    </div> 
	    <div class="alert-back"></div>
		<script src="../js/mui.js"></script>
		<script src="../js/open.js"></script>
		<script src="../libs/jquery/jquery.js"></script>
		<script src="../js/mui.zoom.js"></script>
		<script src="../js/mui.previewimage.js"></script>
		<script type="text/javascript" src="../js/web_js/public.js" ></script>
		<script type="text/javascript" src="../js/angular.js" ></script>
		<script src="../js/web_js/circle_index.js"></script>
		<script type="text/javascript" src="../js/web_js/share_friend.js" ></script>
		<script>
			mui.previewImage();
		</script>
		<script>
			$(".fenx").on("tap",function(){
		        $(".alert-back").toggle();
		        $(".alert").slideToggle();
		      })
		      $(".alert-back").on("click",function(){
		        $(".alert").hide();
		        $(".alert-back").hide();
		      }) 
		</script>
	</body>

</html>